package protocol;

import java.util.LinkedList;

/**
 *
 * @author jordan
 */
public class FilaOperacoes {

    private LinkedList<Operacao> operacoes;

    public FilaOperacoes()
    {
        this.operacoes = new LinkedList<Operacao>();
    }
    
    public void insere (Operacao operacao) {
        this.operacoes.add(operacao);
    }
    
    public Operacao remove() {
        return this.operacoes.remove(0);
    }

    public boolean vazia() {
        return this.operacoes.size() == 0;
    }

}
